import { v4 as uuidv4 } from 'uuid';
// uuid 是vue自带的  uuidv4 是别名

export const getUUID = () =>{
  // 获取本地存储是否存在
  let uuid_token = localStorage.getItem('UUIDTOKEN') 
  
  if(!uuid_token){
    uuid_token = uuidv4()
    localStorage.setItem('UUIDTOKEN',uuid_token)
  }
  return uuid_token
}